/*
 * Lenovo Group
 * Copyright (c) 2015-2016 All Rights Reserved.
 * Project Name: lmrp-android app
 * Create Time: 16-2-24 下午7:45
 */

package com.lenovo.mso2o.entity;

import com.lenovo.framework.entity.FGson;

/**
 * Created by hejie5 on 2016/2/24.
 */
public class LocationItem {
    private Double latitude;
    private Double longitude;
    private String location;

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Override
    public String toString() {
        return FGson.gson().toJson(this);
    }

    public static LocationItem fromString(String json){
        return FGson.gson().fromJson(json, LocationItem.class);
    }
}
